//
//  DetailCheckInViewController.h
//  Spa
//
//  Created by PangPond on 14/1/2556.
//  Copyright (c) พ.ศ. 2556 innova. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "DatabaseUtility.h"
#import "CheckInFieldCustomerCell.h"
#import "CheckInFieldMenuCell.h"
#import "CheckInFieldStaffCell.h"
#import "CheckInFieldBedCell.h"
#import "CheckInFieldTimeCell.h"
#import "CheckInFieldPriceCell.h"
//Delegate
#import "SelectMenuViewController.h"
#import "SelectStaffViewController.h"
#import "SelectBedViewController.h"
@interface DetailCheckInViewController : UIViewController<SelectViewDelegate,SelectStaffViewDelegate,SelectBedViewDelegate>

@property(nonatomic,strong)DatabaseUtility *databaseUtility;
@property(nonatomic,strong)NSString * keyCustomerFirstname;
@property(nonatomic,strong) IBOutlet UITableView *tableView;
@property(nonatomic,strong) NSString *keyCustomer;

- (IBAction)dismissKeyboard:(id)sender;
-(IBAction)BackButton:(id)sender;
-(IBAction)SaveButton:(id)sender;

///////////
@property(nonatomic,strong) UIDatePicker *datePicker;
@property(nonatomic,strong) IBOutlet UILabel *labelText;
@property(nonatomic,strong)    NSDate *selected;
-(IBAction)buttonPressed:(id)sender;
-(IBAction)Hide:(id)sender;

@property(nonatomic,strong)IBOutlet UITableView * detailTableView;

//Cell Custome
@property(nonatomic,strong)IBOutlet CheckInFieldCustomerCell *checkInFieldCustomerCell;

//Cell Menu
@property(nonatomic,strong)IBOutlet CheckInFieldMenuCell *checkInFieldMenuCell;
@property(nonatomic,strong)IBOutlet UIButton *btnMenu;
@property(nonatomic)int *selectItem;
@property(nonatomic)int *selectMenu;
@property(nonatomic,strong)NSString *keySelectMenu;
-(void)SelectMenu:(id)sender;
@property (nonatomic, strong) NSMutableSet *pickedTags;

//Cell Staff
@property(nonatomic,strong)IBOutlet CheckInFieldStaffCell *checkInFieldStaffCell;
@property(nonatomic,strong)IBOutlet UIButton *btnStaff;
-(void)SelectStaff:(id)sender;
@property(nonatomic,strong) NSString *selectStaff;
@property(nonatomic)int keySelectRowStaff;

//Cell Bed
@property(nonatomic,strong)IBOutlet CheckInFieldBedCell *checkInFieldBedCell;
@property(nonatomic,strong)IBOutlet UIButton *btnBed;
@property(nonatomic,strong)NSString *selectBed;
@property(nonatomic)int keySelectRowBed;
-(void)SelectBed:(id)sender;

//Cell Time
@property(nonatomic,strong)IBOutlet CheckInFieldTimeCell *checkInFieldTimeCell;
@property(nonatomic,strong)IBOutlet UIButton *btnTime;
- (void)Date;
//@property(nonatomic,retain) UIDatePicker *datePicker;
@property(nonatomic,retain) IBOutlet UITextField *datelabel;

//Cell price
@property(nonatomic,strong)IBOutlet CheckInFieldPriceCell *checkInFieldPriceCell;
@property(nonatomic,retain) IBOutlet UITextField *priceLabel;
@property(nonatomic,assign)int *price;
@end
